<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<script>
		function getsum(num1,num2){
			var sum = 0;
			for (var i = num1; i <= num2; i++){
				sum += i;
			}
			console.log(sum);
		}
	    getsum(1,100);
		getsum(10,50);
	
	</script>
	<body>		
	</body>
</html>
